// src/main.rs
mod models;
use models::Product;

mod services;
use services::payment::process_payment;

mod utils {
    pub mod logger {
        pub fn log(msg: &str) {
            println!("[系统日志] {}", msg);
        }
    }
}

fn main() {
    let mut product = Product::new("Rust编程指南", 99.99);
    product.apply_discount(0.2);
    
    process_payment(&product);
    utils::logger::log("订单处理完成");
}

